using System;
namespace System.Transactions.Abstractions
{
    // Summary:
    //     Provides data for the following transaction events: System.Transactions.TransactionManager.DistributedTransactionStarted,
    //     System.Transactions.Transaction.TransactionCompleted.
    public class TransactionInterfaceEventArgs : EventArgs
    {
        // Summary:
        //     Initializes a new instance of the System.Transactions.TransactionEventArgs
        //     class.
        public TransactionInterfaceEventArgs(ITransaction transaction)
        {
            this.Transaction = transaction;
        }

        // Summary:
        //     Gets the transaction for which event status is provided.
        //
        // Returns:
        //     A System.Transactions.Abstractions.ITransaction for which event status is provided.
        public ITransaction Transaction { get; private set; }
    }
}
